package model.model04.demo01.proxy;

import com.model.model04.demo01.entity.Girl;
import com.model.model04.demo01.entity.Pursuit;

public class Proxy implements IGiveGift {

    Pursuit pursuit;

    public Proxy(Girl girl) {
        this.pursuit = new Pursuit(girl);
    }

    @Override
    public void giveDolls() {
        pursuit.giveDolls();
    }

    @Override
    public void giveFlowers() {
        pursuit.giveFlowers();
    }

    @Override
    public void giveChocolate() {
        pursuit.giveChocolate();
    }
}
